package com.javatwo;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("----登陆成功----");
        System.out.println("请选择您要的操作：");
        System.out.println("1:点餐");
        System.out.println("2:查看餐袋");
        System.out.println("3:查看订单");
        System.out.println("4:申请退款");
        int i = scanner.nextInt();
        switch (i){ //等值判断
            case 1:
                System.out.println("这是第一个");
                break;
            case 2:
                System.out.println("这是第二个");
                break;
            default:
                System.exit(1);
        }

    }
}
